<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 表单元素form action属性表单提供到服务器地址 -->
    <form action="test.php">
        用户：<input type="text">
        密码：<input type="password"></br>
        性别：
        男：<input type="radio" name="gender" value="male">
        女：<input type="radio" name="gender" value="female"></br>
        爱好：
        王者荣耀<input type="checkbox" name="hobbies" id="game">
        suki<input type="checkbox" name="hobbies" id="suki">
        双人成行<input type="checkbox" name="hobbies" id="ittakestwo">
        <hr>
        <select name="city">
            <optgroup label="一线城市">
                <option value="taiyuan">太原</option>
                <option value="datong">大同</option>
                <option value="jinzhong">晋中</option>
            </optgroup>
            <optgroup label="二线城市">
                <option value="beijing">北京</option>
                <option value="shanghai">上海</option>
                <option value="xiamen">厦门</option>
            </optgroup>
        </select></br>
        <textarea cols="30" rows="10"></textarea></br>
        <input type="date">
        <input type="datetime-local">
    </form>
</body>
</html>